package com.setting.box

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.tools.box.setting.R
import com.tools.box.setting.databinding.ActivityCommonSettingBinding

class CommonSettingActivity : AppCompatActivity() {

    var bindingF: ActivityCommonSettingBinding? = null
    val binding get() = bindingF!!

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        bindingF = ActivityCommonSettingBinding.inflate(layoutInflater)
        setContentView(binding.root)

        val transient = supportFragmentManager.beginTransaction()
        transient.add(R.id.container, CommonSettingFragment.getInstance())
        transient.commitNowAllowingStateLoss()
    }

//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        setContentView(R.layout.activity_common_setting)
//        supportFragmentManager.beginTransaction().add(R.id.container, CommonSettingFragment.getInstance()).commit()
//    }

}